<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/templates/template.xhtml"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<ui:define name="menu_dir">
	</ui:define>

	<ui:define name="conteudo">
		<style>
	        .tree {
	        	height : 300px;
	        	width : 320px;
	        	overflow: auto; 
	        }
    	</style>
	
		<br />
		<div align="center"><h:panelGrid columns="3"
			columnClasses="gridContent">
			<p:panel >
				<f:facet name="header">
                    For Application Developer
                </f:facet>
				<h:form>
					<h:panelGrid columns="2" width="100%" columnClasses="col1,col2">
						<rich:tree
							nodeSelectListener="#{simpleTreeBean.processSelection}"
							reRender="selectedNode" ajaxSubmitSelection="true"
							switchType="client" value="#{simpleTreeBean.treeNode}" var="item"
							ajaxKeys="#{null}">
						</rich:tree>
						<!-- h:outputText escape="false"
							value="Selected Node: #{simpleTreeBean.nodeTitle}"
							id="selectedNode" / -->
					</h:panelGrid>
				</h:form>
			</p:panel>
			<p:panel>
				<f:facet name="header">
                    For Component Developers
                </f:facet>
				<h:form>
					<h:panelGrid columns="2" width="100%" columnClasses="col1,col2">
						<rich:tree
							nodeSelectListener="#{simpleTreeBean.processSelection}"
							reRender="selectedNode" ajaxSubmitSelection="true"
							switchType="client" value="#{simpleTreeBean.treeNode}" var="item"
							ajaxKeys="#{null}">
						</rich:tree>
						<!-- h:outputText escape="false"
							value="Selected Node: #{simpleTreeBean.nodeTitle}"
							id="selectedNode" / -->
					</h:panelGrid>
				</h:form>
			</p:panel>
		</h:panelGrid></div>
		<br />
	</ui:define>
</ui:composition>
